import {get, post, del, put} from "@/apis/http/request";
import {RetailOrder} from "@/apis/model/order/RetailOrderModel";

/**
* 得到列表
* @param params
*/
export const getRetailOrderList = (params: any) => get("/retailOrder/list", params)

/**
* 得到分页列表
* @param params
*/
export const retailOrderPage = (params: any) => post("/retailOrder/page", params)


/**
* 删除数据
* @param id
* @returns
*/
export const deleteRetailOrderById = (id: number) => del("/retailOrder/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertRetailOrder = (param: RetailOrder) => post("/retailOrder", param)

/**
* 更新数据
* @param param
*/
export const updateRetailOrder = (param: RetailOrder) => put("/retailOrder", param)

/**
 * 我的订单
 * @param params
 */
export const adminOrderTableTree = (adminId: number) => get("/retailOrder/adminOrderTableTree/"+adminId)
